package cn.siat.gene.constant;

import cn.siat.common.core.utils.StringUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Validate {

    public static Pattern SEQUENCE_NAME_PATTERN = Pattern.compile("\\.[^/.]+$");
    public static void main(String[] args) {
//        Matcher numberMatcher = FEATURE_NUMBER_PATTERN.matcher("source          1..98 22");
//        while (numberMatcher.find()){
//            System.out.println(numberMatcher.group());
//        }
        String line = " LOCUS       NT_187405                998 bp    DNA     linear   CON 26-MAR-2018";
        for (String s : line.split("[\\s]+")) {
//            System.out.println(s);
        }
        char a = '我';
        System.out.println("123".matches("^\\d+$"));
//        String b="012345678910";
//        System.out.println(b.substring(0,12));
//        System.out.println(b.replaceAll("\"",""));
//        System.out.println(b.replaceFirst("^[\\s]*[\\S]+[\\s]+|[\\s]+$",""));
//        System.out.println(Pattern.compile("^[\\s]*/[\\w]+=[\\S]+").matcher(b).find());
//        System.out.println(b.trim().startsWith("/"));
//        System.out.println(Pattern.compile("^[\\S]+").matcher(" 123 123").find());
    }
}
